package com.example.list;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.LinkedList;

public class Main {

    public static void main(String[] args) {
        ArrayList<Object> arrayList = new ArrayList<>();
        System.out.println("ArrayList的默认长度是："+arrayList.size());
        LinkedList<Object> linkedList = new LinkedList<>();
        System.out.println("LinkedList的默认长度是："+linkedList.size());
        arrayList.add(null);
        arrayList.stream().sorted();
        System.out.println(arrayList);

    }


}
